package com.zhouxiaoge.security.validate.code.image;

import com.zhouxiaoge.security.validate.code.ValidateCode;

import java.awt.image.BufferedImage;
import java.time.LocalDateTime;

/**
 * 作者： 周小哥
 * 时间： 2018-07-25 22:41
 * 邮箱： gqzmy@outlook.com
 */

public class ImageCode extends ValidateCode {

    private BufferedImage image;

    public ImageCode() {
    }

    public ImageCode(BufferedImage image, String code, int expireInt) {
        super(code, expireInt);
        this.image = image;
    }

    public ImageCode(BufferedImage image, String code, LocalDateTime expireTime) {
        super(code, expireTime);
        this.image = image;
    }

    public BufferedImage getImage() {
        return image;
    }

    public void setImage(BufferedImage image) {
        this.image = image;
    }
}
